import request from '@/utils/request'

export const listFoodService = (params) => {
  return request({
    url: '/food/listFoodByBusinessId',
    method: 'get',
    params: params
  })
}

// 根据食品id获取食品信息
export const getFoodByIdService = (foodId) => {
  return request({
    url: `/food/${foodId}`,
    method: 'get'
  })
}

// 根据ID获取食品详情
export const getFoodById = (foodId) => {
  return request({
    url: `/food/${foodId}`,
    method: 'get'
  });
};